package com.lottery.obtainData;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

import com.lottery.utils.DateUtil;

@Component
public class Verification implements Runnable {

	private final Logger logger = LoggerFactory.getLogger(this.getClass());

	public void run() {
		logger.info("Verification startThreadThread");
		while (true) {
			// 休眠间隔30分钟
			if (!(DateUtil.getFormatDate("HH").equals("1"))) {
				try {
					Thread.sleep(1800000);
				} catch (Exception e) {
					e.printStackTrace();
					logger.error("sleep error");
					continue;
				}
			} else {
				//new Pc28AchieveData().checkOut1();
			}

		}
	}
}
